package org.lqk.pool.zk;

import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

/**
 * Created with IntelliJ IDEA.
 * User: hadoop
 * Date: 13-10-18
 * Time: 下午3:30
 */
public interface SocketConnection {

    public void write(byte[] b) throws IOException;

    public DataOutputStream dataInputStream();
    
    public Socket socket();

    public void destory();
    
    public boolean isClosed();
}
